﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x020000A3 RID: 163
	public class TDropRoleStmt : TCustomSqlStatement
	{
		// Token: 0x06000518 RID: 1304 RVA: 0x002FC8F9 File Offset: 0x002FAAF9
		public TDropRoleStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdroprole;
		}

		// Token: 0x06000519 RID: 1305 RVA: 0x002FC90D File Offset: 0x002FAB0D
		public TObjectName getRoleName()
		{
			return this.roleName;
		}

		// Token: 0x0600051A RID: 1306 RVA: 0x002FC918 File Offset: 0x002FAB18
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.roleName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x0600051B RID: 1307 RVA: 0x002FC955 File Offset: 0x002FAB55
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600051C RID: 1308 RVA: 0x002FC965 File Offset: 0x002FAB65
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001132 RID: 4402
		private TObjectName roleName;
	}
}
